package com.zzh.lib.plugin.exception;

/**
 *
 * @Date: 2021/5/27 09:24
 * @Email: zzh_hz@126.com
 * @QQ: 1299234582
 * @Author: zzh
 * @Description: PluginAlreadyLoadedException.java
 */
public class PluginAlreadyLoadedException extends RuntimeException {

    private String packageName;
    private long version;

    public PluginAlreadyLoadedException(String packageName, long version) {
        super("The plugin is already loaded: " + packageName);
        this.packageName = packageName;
        this.version = version;
    }

    public String getPackageName() {
        return packageName;
    }

    public long getVersion() {
        return version;
    }
}
